module.exports = {
    runtimeCompiler: true,
    publicPath: '/', // 设置打包文件相对路径
    devServer: {
        // open: process.platform === 'darwin',
        // host: 'localhost',
        port: 8080,
        // open: true, //配置自动启动浏览器
        proxy: {
            '/api': {
                /*target: 'http://123.56.118.16:8080/', //对应自己的接口*/
                target:'http://47.93.118.247:8080/',//后端服务器地址
               /* target: 'http://123.57.67.148:3000/', //yapi的接口*/
                // target: 'http://47.93.118.247:8080/', //后端的接口
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/api': ''
                }
            },
            '/newApi': {
                target:'http://123.57.67.148:3000/',//yapi地址
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/newApi': ''
                }
            }
        }
    },
}